<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title><?php echo $view_title?></title>
	<link rel=stylesheet href='./template/<?php echo $OJ_TEMPLATE?>/<?php echo isset($OJ_CSS)?$OJ_CSS:"hoj.css" ?>' type='text/css'>
</head>
<body>

	<?php require_once("oj-header.php");?>
<div id="wrapper">
<div id=main>
	<table class="table table-striped table-condensed">
		<thead>
		<!--<tr><td colspan=3 align=left>
			<form action=userinfo.php>
				<?php echo $MSG_USER?><input name=user>
				<input type=submit value=Go>
			</form></td><td colspan=3 align=right>
			<a href=ranklist.php?scope=d>日排名</a>
			<a href=ranklist.php?scope=w>周排名</a>
			<a href=ranklist.php?scope=m>月排名</a>
			<a href=ranklist.php?scope=y>年排名</a>
			</td>
		</tr>-->
		<tr>
				<td width=5%><b><?php echo $MSG_Number?></b>
				<td width=10%><b><?php echo $MSG_USER?></b>
				<td width=55%><b><?php echo $MSG_NICK?></b>
				<td width=10%><b><?php echo $MSG_AC?></b>
				<td width=10%><b><?php echo $MSG_SUBMIT?></b>
				<td width=10%><b><?php echo $MSG_RATIO?></b>
		</tr>
		</thead>
		<tbody>
			<?php 
			foreach($view_rank as $row){
			    echo "<tr>";
				foreach($row as $table_cell){
					echo "<td>";
					echo "\t".$table_cell;
					echo "</td>";
				}			
				echo "</tr>";
			}
			?>
			</tbody>		
	</table>
	<?php 
		if(isset( $_GET ['start'] ))$startS=$_GET ['start'];
		else $startS=0;
	?>
	<ul class="pager rank-pager">
        <li class="reflesh"><a href="ranklist.php">刷新</a></li>
            <li><a href="ranklist.php?start=<?php echo strval ( $startS + $page_size );?>">下一页</a></li>
    </ul>
<div id=foot>
	<?php require_once("oj-footer.php");?>

</div><!--end foot-->
</div><!--end main-->
</div><!--end wrapper-->
</body>
</html>
